package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbDiscountDao;
import com.gtw.modules.dao.TbDividendsDao;
import com.gtw.modules.entity.TbDividends;
import com.gtw.modules.sys.service.SysDividendsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**分红接口实现类
 *
 * @author wuye
 * @date 2018/1/31
 */
@Service
public class SysDividendsServiceImpl implements SysDividendsService {

    @Autowired
    private TbDividendsDao dividendsDao;

    @Override
    public TbDividends queryObject(Integer id){
        return dividendsDao.queryObject(id);
    }

    @Override
    public List<TbDividends> queryList(Map<String, Object> map){
        return dividendsDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return dividendsDao.queryTotal(map);
    }

    @Override
    public void save(TbDividends dividends){
        dividendsDao.save(dividends);
    }

    @Override
    public void update(TbDividends dividends){
        dividendsDao.updateByPrimaryKey(dividends);
    }

    @Override
    public void delete(Integer id){
        dividendsDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        dividendsDao.deleteBatch(ids);
    }
}
